package com.javaee.xiangyang.entity.enmu.impl;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.javaee.xiangyang.entity.enmu.BaseStateEnum;

@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum UserState implements BaseStateEnum {
    USER_USED(1, "正常使用"),
    USER_BAN(2, "已封禁");

    private int userStateId;
    private String userState;

    @Override
    @JsonIgnore
    public int getCode() {
        return this.userStateId;
    }

    UserState(int userStateId, String userState) {
        this.userStateId = userStateId;
        this.userState = userState;
    }

    public int getUserStateId() {
        return userStateId;
    }

    public void setUserStateId(int userStateId) {
        this.userStateId = userStateId;
    }

    public String getUserState() {
        return userState;
    }

    public void setUserState(String userState) {
        this.userState = userState;
    }
}
